package com.jielihaofeng.chat.dao;

import com.jielihaofeng.chat.entity.ChatUserRelationEntity;
import com.jielihaofeng.framework.common.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户好友表
 *
 * @author 借力好风 949394048@qq.com
 * @since 1.0.0 2022-07-22
 */
@Mapper
public interface ChatUserRelationDao extends BaseDao<ChatUserRelationEntity> {

    List<Long> getFriendIdListByStatus(@Param("userId") Long userId, @Param("status") Integer status);

    List<ChatUserRelationEntity> getAllFriend(@Param("userId") Long userId);

    List<Long> getRequestFriendIdList(@Param("userId") Long userId);
}